<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>{$from}-{$to}/<?php echo substr($dater, 5); ?></title>
		<script src="/js/jquery.js"></script>
		<style>
			body, td, span, div, p, input {
				font-size: 12px;
				font-family: Arial, 宋体;
			}
			.info {
				width: 50%;
				float: left;
				line-height: 8px;
			}
			.handle {
				width: 50%;
				float: left;
			}
			.warning {
				color: #F00;
			}
			#divReserve, #divLogin {
				display: none;
			}
		</style>
	</head>
	<body>
		<div id="divInfo" class="info">
			&nbsp;
		</div>
		<div class="handle">
			<p style="line-height: 30px;">
				{$from}-{$to}，<?php echo $dater; ?>，用户：{$name}，用户名：{$user}
			</p>
			<div id="divReserve">
				<input id="inState" type="button" value="预订" onclick="detect(this.value == '预订' ? '暂停' : '预订')" />
				<form onsubmit="filter(); return false;">
					忽略：
					<input id="inFilterNos" type="text" size="15" />
					<input type="button" value="确认" onclick="filter()" />
				</form>
				<span>例如：“D133,K1164,K179:硬卧,K180:硬卧”。</span>
				<form onsubmit="setReserveCode(); return false;">
					扰码：
					<input id="inReserve" type="text" size="15" />
					<img id="imgReserve" src="" onclick="this.src = this.src + '&' + new Date().getTime();" />
					<input type="button" value="设置" onclick="setReserveCode()" />
				</form>
				<p class="warning">
					1、如果您在规则中还定义了“{$to}”附近的到站，不妨先看一下对它的抢订是否优于本单。
					<br />
					2、如果设置了扰码，当有票时，将自动抢订。而当需要确认是否进行抢订时，应该将扰码设置为空。
				</p>
			</div>
			<div id="divLogin">
				<form onsubmit="login(); return false;">
					扰码：
					<input id="inLogin" type="text" size="15" />
					<img id="imgLogin" src="/code?type=login&sid=<?php echo $sid; ?>" onclick="this.src = this.src + '&' + new Date().getTime();" />
					<input type="button" value="登录" onclick="login()" />
				</form>
			</div>
		</div>
	</body>
	<script>
		var sid = "<?php echo $sid; ?>";
		var user = "<?php echo $user; ?>";
		var dater = "<?php echo $dater; ?>";
		var from = "<?php echo $from; ?>";
		var to = "<?php echo $to; ?>";
	</script>
	<script src="/js/ticket.js"></script>
</html>